import 'package:workmate/models/base.dart';

class ApiModel extends BaseModel {
  late String recommend;
  late String config;

  ApiModel.fromJson(Map<String, dynamic> json) {
    recommend = json['recommend'] ?? '';
    config = json['config'] ?? 'https://www.kanman.com/api/getConfig';
  }

  @override
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['recommend'] = recommend;
    data['config'] = config;
    return data;
  }
}
